package com.power.sifa.correction.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.correction.model.Crw_rule_night;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.correction.model.Crw_rule_samecase;
import com.power.sifa.correction.model.pageInfo.Crw_rule_samecasePageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  同案类案人设置 Feign
 */
public interface ICrw_rule_samecaseFeign {

    /**
     * 同案类案人设置分页列表
     */
    @PostMapping("/crw_rule_samecase/list")
    ResponseDTO list(@RequestBody Crw_rule_samecasePageInfo crw_rule_samecasePageInfo);

    /**
    * 查看同案类案人设置
    */
    @GetMapping("/crw_rule_samecase/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除同案类案人设置
    */
    @PostMapping("/crw_rule_samecase/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看同案类案人设置 复合主键使用
    // */
    //@PostMapping("/crw_rule_samecase/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Crw_rule_samecase.Crw_rule_samecasePK pk);

    /**
     * 修改或保存同案类案人设置
     */
    @PostMapping("/crw_rule_samecase/save")
    ResponseDTO save(@RequestBody Crw_rule_samecase  crw_rule_samecase);

    ///**
    // * 删除同案类案人设置 复合主键使用
    // */
    //@PostMapping("/crw_rule_samecase/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Crw_rule_samecase.Crw_rule_samecasePK pk);
    
    /**
     * 批量删除同案类案人设置
     */
    @PostMapping("/crw_rule_samecase/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/crw_rule_samecase/output")
    void output(HttpServletResponse response, @RequestBody Crw_rule_samecasePageInfo crw_rule_samecasePageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/crw_rule_samecase/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/crw_rule_samecase/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;


    /**
     * 修改或保存夜间活动设置及社矫人员信息
     */
    @PostMapping("/crw_rule_samecase/saveRule")
    ResponseDTO saveRule(@RequestBody Crw_rule_samecase crw_rule_samecase, @RequestParam("personIds")String personIds, @RequestParam("groupIds")String groupIds);


    /**
     * 判断规则名称是否已存在
     */
    @GetMapping("/crw_rule_samecase/existsRuleName")
    ResponseDTO<Boolean> existsRuleName(@RequestParam("name") String name);
}
